package edu.hwadee.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Carsell entity. @author MyEclipse Persistence Tools
 */

public class Carsell implements java.io.Serializable {

	// Fields

	private Integer carsellId;
	private Staff staff;
	private Carcomplement carcomplement;
	private Company company;
	private Date buyDate;
	private Float totalAmount;
	private String note;
	private Short collectionState;
	private Float profit;
	private Short checkState;
	private Set carsellcomplements = new HashSet(0);

	// Constructors

	/** default constructor */
	public Carsell() {
	}

	/** full constructor */
	public Carsell(Staff staff, Carcomplement carcomplement, Company company, Date buyDate, Float totalAmount,
			String note, Short collectionState, Float profit, Short checkState, Set carsellcomplements) {
		this.staff = staff;
		this.carcomplement = carcomplement;
		this.company = company;
		this.buyDate = buyDate;
		this.totalAmount = totalAmount;
		this.note = note;
		this.collectionState = collectionState;
		this.profit = profit;
		this.checkState = checkState;
		this.carsellcomplements = carsellcomplements;
	}

	// Property accessors

	public Integer getCarsellId() {
		return this.carsellId;
	}

	public void setCarsellId(Integer carsellId) {
		this.carsellId = carsellId;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public Carcomplement getCarcomplement() {
		return this.carcomplement;
	}

	public void setCarcomplement(Carcomplement carcomplement) {
		this.carcomplement = carcomplement;
	}

	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public Date getBuyDate() {
		return this.buyDate;
	}

	public void setBuyDate(Date buyDate) {
		this.buyDate = buyDate;
	}

	public Float getTotalAmount() {
		return this.totalAmount;
	}

	public void setTotalAmount(Float totalAmount) {
		this.totalAmount = totalAmount;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Short getCollectionState() {
		return this.collectionState;
	}

	public void setCollectionState(Short collectionState) {
		this.collectionState = collectionState;
	}

	public Float getProfit() {
		return this.profit;
	}

	public void setProfit(Float profit) {
		this.profit = profit;
	}

	public Short getCheckState() {
		return this.checkState;
	}

	public void setCheckState(Short checkState) {
		this.checkState = checkState;
	}

	public Set getCarsellcomplements() {
		return this.carsellcomplements;
	}

	public void setCarsellcomplements(Set carsellcomplements) {
		this.carsellcomplements = carsellcomplements;
	}

}